/* 
 * SerialHelper.h 
 * 
 *  Created on: Jul 1, 2011 
 *      Author: jrodrig9 
 */ 
 
#ifndef SERIALHELPER_H_ 
#define SERIALHELPER_H_ 
 
class SerialHelper { 
private: 
    int serial_port_number; 
    int file_pointer; 
    int open_port(); 
    int configure_port(int); 
    int query_modem(int); 
public: 
    SerialHelper(); 
    SerialHelper(int); 
    virtual ~SerialHelper(); 
    void write_to_port_Bytes(unsigned char[],int);
    void write_to_port_Byte(unsigned char);
    int configure_baud_rate(int);
    int getfile_pointer(); 
}; 
 
#endif /* SERIALHELPER_H_ */
